<template>
	<u-popup v-model="show" mode="center" :mask-close-able="false" border-radius="10">
		<view class="popVue">
			<view class="text text-center">{{ text }}</view>
			<view class="flex-between padding-row20 margin50">
				<view class="cancel" @click="cancel()">取消</view>
				<view class="confirm" @click="confirm()">确认</view>
			</view>
		</view>
	</u-popup>
</template>

<script>
	export default {
		props: {
			show: {
				type: Boolean,
				default: false
			},
			text: {
				type: String,
				default: ""
			}
		},
		methods: {
			cancel(){
				this.$emit("cancel")
			},
			confirm(){
				this.$emit("confirm")
			}
		}
	}
</script>

<style lang="less" scoped>
	.popVue {
		width: 620rpx;
		padding: 50rpx;
		.text {
			color: #333;
			font-size: 32rpx;
			font-weight: 600;
		}
		.cancel, .confirm {
			width: 220rpx;
			height: 82rpx;
			text-align: center;
			line-height: 82rpx;
			font-weight: 600;
			border-radius: 20rpx;
			font-size: 30rpx;
		}
		.cancel {
			border: 1rpx solid #1CC289;
			color: #1CC289;
		}
		.confirm {
			background: linear-gradient(to right, #1CC289, #60A5FA);
			color: #fff;
		}
	}
</style>